<template>
  <div>
    <h2>Home组件</h2>
    <h2>当前计数: {{ counter }}</h2>
    <button @click="counter++">+1</button>
  </div>
</template>

<script>
export default {
  name: "home",
  data() {
    return {
      counter: 0
    }
  },
  created() {
    console.log("home created")
  },
  unmounted() {
    console.log("home unmounted")
  },
}
</script>

<style scoped>
</style>

